package com.ruoyi.tuanzhang.domain.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**              商品信息：institution/activity/audit/list               */
@NoArgsConstructor
@Data
public class ProductDataDto {

    @JsonProperty("st")
    private Integer st;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("data")
    private List<DataDTO> data;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("current")
    private Integer current;
    @JsonProperty("extra")
    private ExtraDTO extra;

    @NoArgsConstructor
    @Data
    public static class ExtraDTO {
        @JsonProperty("log_id")
        private String logId;
        @JsonProperty("now")
        private Long now;
    }

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JsonProperty("apply_id")
        private String applyId;
        // 商品名称
        @JsonProperty("product_name")
        private String productName;
        // 商品id
        @JsonProperty("product_id")
        private String productId;
        @JsonProperty("product_promotion_id")
        private String productPromotionId;
        // 商品价格
        @JsonProperty("product_price")
        private Double productPrice;
        // 店铺名称
        @JsonProperty("shop_name")
        private String shopName;
        // 店铺id
        @JsonProperty("shop_id")
        private String shopId;
        // 推广开始时间
        @JsonProperty("commission_effect_start_time")
        private String commissionEffectStartTime;
        // 推广结束时间
        @JsonProperty("commission_effect_end_time")
        private String commissionEffectEndTime;
        @JsonProperty("commission_rate")
        private Double commissionRate;
        // 服务费率
        @JsonProperty("service_rate")
        private Double serviceRate;
        // 链接url
        @JsonProperty("promotion_url")
        private String promotionUrl;
        @JsonProperty("promotion_price")
        private String promotionPrice;

        @JsonProperty("promotion_stock")
        private String promotionStock;
        @JsonProperty("gift_info")
        private String giftInfo;
        @JsonProperty("promotion_step")
        private String promotionStep;
        @JsonProperty("dsr")
        private String dsr;
        // 商品图片
        @JsonProperty("product_img")
        private String productImg;
        // 商品库存
        @JsonProperty("product_stock")
        private String productStock;
        @JsonProperty("shop_phone")
        private String shopPhone;
        @JsonProperty("is_new")
        private Boolean isNew;
        @JsonProperty("common_commission_rate")
        private String commonCommissionRate;
        @JsonProperty("on_cancel")
        private Boolean onCancel;
        @JsonProperty("on_rate_change")
        private Boolean onRateChange;
        // 审核状态
        @JsonProperty("audit_status")
        private Integer auditStatus;
        @JsonProperty("origin_institution_name")
        private String originInstitutionName;
        @JsonProperty("origin_institution_phone")
        private String originInstitutionPhone;
        @JsonProperty("origin_activity_start_time")
        private String originActivityStartTime;
        @JsonProperty("origin_activity_end_time")
        private String originActivityEndTime;
        @JsonProperty("trusteeship_product")
        private Boolean trusteeshipProduct;
        @JsonProperty("now")
        private Long now;
        @JsonProperty("exclusive_status")
        private Integer exclusiveStatus;
        @JsonProperty("exclusive_duration")
        private Integer exclusiveDuration;
        // 抖音好物
        @JsonProperty("douin_goods_tag")
        private Boolean douinGoodsTag;
        // 商品等级
        @JsonProperty("product_level")
        private String productLevel;
        @JsonProperty("origin_activity_id")
        private String originActivityId;
        @JsonProperty("is_off_the_shelf")
        private Boolean isOffTheShelf;
        @JsonProperty("price_level")
        private Integer priceLevel;
        @JsonProperty("origin_institution_id")
        private String originInstitutionId;
    }
}
